namespace UniversalAdmin.Application.Dto;

public class OperationLogDto
{
    public Guid Id { get; set; }
    public string Operation { get; set; } = string.Empty;
    public string? Description { get; set; }
    public Guid UserId { get; set; }
    public string Username { get; set; } = string.Empty;
    public DateTime CreatedAt { get; set; }
    
    // 新增字段 - 系统运行日志
    public string LogLevel { get; set; } = "info";
    public string Module { get; set; } = string.Empty;
    public string Message { get; set; } = string.Empty;
    public string? Details { get; set; }
    public string? Exception { get; set; }
    public string? RequestBody { get; set; }
    public string? ResponseBody { get; set; }
    public int? StatusCode { get; set; }
    public long? ExecutionTime { get; set; }
    public string IpAddress { get; set; } = string.Empty;
    public string UserAgent { get; set; } = string.Empty;
} 